vector function for curve of intersection